5dc6e8708cb7845be46bccaa1a5c3eee8aaf95fc,cspi-webui/src/main/java/org/collectionspace/chain/csp/webui/misc/WebReset.java,WebReset,initialiseAll,#Storage#UIRequest#String#boolean#,75
Before Change
} catch (UnderlyingStorageException x) {
if (x.getStatus() == HttpStatus.SC_UNAUTHORIZED) {
initializationFailed = true;
logInitMessage(responseMessage,
"\n*** ERROR *** You will need to login to the correct tenant before attempting to initialize the default vocabularies and authorities.\n",
modifyResponse);
logInitMessage(responseMessage, "\nDetailed error code:\n\t" + x.getStatus(), modifyResponse);
logInitMessage(responseMessage, "\nRequest target:\n\t" + x.getUrl(), modifyResponse);
logInitMessage(responseMessage, "\nDetailed error message:\n\t" + x.getMessage(), modifyResponse);
After Change
}
}
logException(e, responseMessage, modifyResponse);
break; // no need to continue if we get here.
}
}
} catch (ExistException e) {
logInitMessage(responseMessage, "ExistException " + e.getLocalizedMessage(), modifyResponse);
throw new UIException("Existence problem", e);
} catch (UnimplementedException e) {
logInitMessage(responseMessage, "UnimplementedException " + e.getLocalizedMessage(), modifyResponse);
throw new UIException("Unimplemented ", e);
} catch (UnderlyingStorageException x) {
if (x.getStatus() == HttpStatus.SC_UNAUTHORIZED) {
initializationFailed = true;
logInitMessage(responseMessage,
"\n*** ERROR *** You need to be logged in to the correct tenant with the proper credentials before attempting to initialize the default term lists and authorities.\n",
modifyResponse);
logException(x, responseMessage, modifyResponse);
} else {
logInitMessage(responseMessage, "UnderlyingStorageException " + x.getLocalizedMessage(), modifyResponse);